﻿<Window x:Class="FastAdmin.GerenciarAluno"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Loaded="Window_Loaded"
        Title="Gerenciar Aluno" MinHeight="300" MaxHeight="800" Width="718">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition MaxHeight="200"/>
            <RowDefinition MaxHeight="200"/>
        </Grid.RowDefinitions>

        <StackPanel Orientation="Horizontal" Margin="10 0 0 0" VerticalAlignment="Center">
            <TextBlock Text="Nome : "/>
            <TextBlock x:Name="txtNome"/>
            
            <TextBlock Text="Telefone : " Margin="10 0 0 0"/>
            <TextBlock x:Name="txtTelefone"/>

            <TextBlock Text="Celular : " Margin="10 0 0 0"/>
            <TextBlock x:Name="txtCelular"/>

            <TextBlock Text="Email : " Margin="10 0 0 0"/>
            <TextBlock x:Name="txtEmail"/>
        </StackPanel>
        
        <Expander Header="Cursos do aluno" Grid.Row="1" Margin="10 0 0 0" >
            <Expander.Content>
                <DataGrid AutoGenerateColumns="False" x:Name="dgCursos" Margin="0 0 10 10" IsReadOnly="True" AlternationCount="2" RowBackground="AliceBlue" 
                  AlternatingRowBackground="LightBlue" SelectionMode="Single" VerticalAlignment="Top" ToolTip="Dê dois cliques para ver os dados do curso."
                          MouseDoubleClick="dgCursos_MouseDoubleClick">
                    <DataGrid.Columns>
                        <DataGridTextColumn Header="Curso" Binding="{Binding DescricaoCurso}"/>
                        <DataGridTextColumn Header="Status" Binding="{Binding DescricaoStatus}"/>
                    </DataGrid.Columns>
                </DataGrid>
            </Expander.Content>
        </Expander>

        <Expander Header="Pagamentos" Grid.Row="2" Margin="10 10 0 0">
            <Expander.Content>
                <DataGrid AutoGenerateColumns="False" x:Name="dgPagamentos" Margin="0 0 10 10" IsReadOnly="True" AlternationCount="2" RowBackground="AliceBlue" 
                  AlternatingRowBackground="LightBlue" SelectionMode="Single" VerticalAlignment="Top" ToolTip="Dê dois cliques para ver os detalhes do pagamento."
                          MouseDoubleClick="dgPagamentos_MouseDoubleClick">
                    <DataGrid.Columns>
                        <DataGridTextColumn Header="Curso" Binding="{Binding DescricaoCurso}"/>
                        <DataGridTextColumn Header="Dia Vencimento" Binding="{Binding DiaVencimento}"/>
                        <DataGridTextColumn Header="Total" Binding="{Binding Total}"/>
                        <DataGridTextColumn Header="Desconto" Binding="{Binding Desconto}"/>
                        <DataGridTextColumn Header="Final" Binding="{Binding Final}"/>
                    </DataGrid.Columns>
                </DataGrid>
            </Expander.Content>
        </Expander>
    </Grid>
</Window>
